package com.ruoyi.report_jl.domain.vo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.utils.BigDecimalUtil;
import com.ruoyi.report_jl.domain.ReportJlCjlsfssfjlbBaDetail;
import com.ruoyi.report_tg.domain.vo.ExcelGeneralVo;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;


/**
 * 粗集料筛分记录（水筛法）视图对象 report_jl_cjlsfssfjlb_bs_info
 *
 * @author tll
 * @date 2024-05-22
 */
@Data
@ExcelIgnoreUnannotated
public class ReportJlCjlsfssfjlbBsInfoVo extends ExcelGeneralVo {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long excelId;

    /**
     * 共几页
     */
    @ExcelProperty(value = "共几页")
    private Long totalPage;

    /**
     * 第几页
     */
    @ExcelProperty(value = "第几页")
    private Long page;

    /**
     * 记录编号
     */
    @ExcelProperty(value = "记录编号")
    private String jilbh;

    /**
     * 检测单位名称
     */
    @ExcelProperty(value = "检测单位名称")
    private String jiancdwmc;

    /**
     * 工程部位/用途
     */
    @ExcelProperty(value = "工程部位/用途")
    private String gongcbwyt;

    /**
     * 样品名称
     */
    @ExcelProperty(value = "样品名称")
    private String yangpmc;

    /**
     * 样品编号
     */
    @ExcelProperty(value = "样品编号")
    private String yangpbh;

    /**
     * 样品数量
     */
    @ExcelProperty(value = "样品数量")
    private String yangpsl;

    /**
     * 样品状态
     */
    @ExcelProperty(value = "样品状态")
    private String yangpzt;

    /**
     * 样品时间
     */
    @ExcelProperty(value = "样品时间")
    private String yangpsj;

    /**
     * 试验检测日期
     */
    @ExcelProperty(value = "试验检测日期")
    private String shiyjcrq;

    /**
     * 试验条件温度
     */
    @ExcelProperty(value = "试验条件温度")
    private String shiytjwd;

    /**
     * 试验条件湿度
     */
    @ExcelProperty(value = "试验条件湿度")
    private String shiytjsd;

    /**
     * 检测依据
     */
    @ExcelProperty(value = "检测依据")
    private String jiancyj;

    /**
     * 判定依据
     */
    @ExcelProperty(value = "判定依据")
    private String pandyj;

    /**
     * 主要仪器设备名称及编号
     */
    @ExcelProperty(value = "主要仪器设备名称及编号")
    private String zhuyyqsbmcjbh;

    /**
     * 附加声明
     */
    @ExcelProperty(value = "附加声明")
    private String fujsm;

    /**
     * 报表名称
     */
    @ExcelProperty(value = "报表名称")
    private String baobmc;

    /**
     * 报表编号
     */
    @ExcelProperty(value = "报表编号")
    private String baobbh;

    /**
     * 工程名称
     */
    @ExcelProperty(value = "工程名称")
    private String gongcmc;

    /**
     * 检测人
     */
    @ExcelProperty(value = "检测人")
    private String jiancr;

    /**
     * 记录人
     */
    @ExcelProperty(value = "记录人")
    private String jilr;

    /**
     * 复核人
     */
    @ExcelProperty(value = "复核人")
    private String fuhr;

    /**
     * 日期
     */
    @ExcelProperty(value = "日期")
    private Date riq;

    /**
     * 筛分后总质量∑mi（g）分组1
     */
    @ExcelProperty(value = "筛分后总质量∑mi", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "g=")
    private BigDecimal shaifhzzlItem1;

    /**
     * 扣除损耗后试样总质量分组1
     */
    @ExcelProperty(value = "扣除损耗后试样总质量分组1")
    private BigDecimal koucshsyzzlItem1;

    /**
     * 损耗率（%）分组1
     */
    @ExcelProperty(value = "损耗率", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "%=")
    private BigDecimal sunhlItem1;

    /**
     * 筛分后总质量∑mi（g）分组2
     */
    @ExcelProperty(value = "筛分后总质量∑mi", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "g=")
    private BigDecimal shaifhzzlItem2;

    /**
     * 扣除损耗后试样总质量分组2
     */
    @ExcelProperty(value = "扣除损耗后试样总质量分组2")
    private BigDecimal koucshsyzzlItem2;

    /**
     * 损耗率（%）分组2
     */
    @ExcelProperty(value = "损耗率", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "%=")
    private BigDecimal sunhlItem2;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;
    /**
     * 称量次数分组1
     */
    @ExcelProperty(value = "称量次数分组1")
    private String chenglcsItem1;
    /**
     * 质量m3分组1
     */
    @ExcelProperty(value = "质量m3分组1")
    private BigDecimal zhil3Item1;
    /**
     * 质量m4分组1
     */
    @ExcelProperty(value = "质量m4分组1")
    private BigDecimal zhil4Item1;
    /**
     * 称量次数分组2
     */
    @ExcelProperty(value = "称量次数分组2")
    private String chenglcsItem2;
    /**
     * 质量m3分组2
     */
    @ExcelProperty(value = "质量m3分组2")
    private BigDecimal zhil3Item2;
    /**
     * 质量m4分组2
     */
    @ExcelProperty(value = "质量m4分组2")
    private BigDecimal zhil4Item2;

    /**
     * 设备ids
     */
    @ExcelProperty(value = "设备ids")
    private String shebIds;

    @ExcelProperty(value = "子表")
    private List<ReportJlCjlsfssfjlbBaDetailVo> detailList;

    @ExcelProperty(value = "报表编号集")
    private List<String> baobbhList;

    public void setShaifhzzlItem1(BigDecimal shaifhzzlItem1) {
        this.shaifhzzlItem1 = BigDecimalUtil.stpTrailZero(shaifhzzlItem1);
    }

    public void setKoucshsyzzlItem1(BigDecimal koucshsyzzlItem1) {
        this.koucshsyzzlItem1 = BigDecimalUtil.stpTrailZero(koucshsyzzlItem1);
    }

    public void setSunhlItem1(BigDecimal sunhlItem1) {
        this.sunhlItem1 = BigDecimalUtil.stpTrailZero(sunhlItem1);
    }

    public void setShaifhzzlItem2(BigDecimal shaifhzzlItem2) {
        this.shaifhzzlItem2 = BigDecimalUtil.stpTrailZero(shaifhzzlItem2);
    }

    public void setKoucshsyzzlItem2(BigDecimal koucshsyzzlItem2) {
        this.koucshsyzzlItem2 = BigDecimalUtil.stpTrailZero(koucshsyzzlItem2);
    }

    public void setSunhlItem2(BigDecimal sunhlItem2) {
        this.sunhlItem2 = BigDecimalUtil.stpTrailZero(sunhlItem2);
    }

    public void setZhil3Item1(BigDecimal zhil3Item1) {
        this.zhil3Item1 = BigDecimalUtil.stpTrailZero(zhil3Item1);
    }

    public void setZhil4Item1(BigDecimal zhil4Item1) {
        this.zhil4Item1 = BigDecimalUtil.stpTrailZero(zhil4Item1);
    }

    public void setZhil3Item2(BigDecimal zhil3Item2) {
        this.zhil3Item2 = BigDecimalUtil.stpTrailZero(zhil3Item2);
    }

    public void setZhil4Item2(BigDecimal zhil4Item2) {
        this.zhil4Item2 = BigDecimalUtil.stpTrailZero(zhil4Item2);
    }
}
